package com.wzk.mapper;

import com.wzk.pojo.Clazz;
import com.wzk.pojo.ClazzQueryParam;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;

@Mapper
public interface ClazzMapper {

    List<Clazz> pageQuery(ClazzQueryParam clazzQueryParam);
    @Delete("delete from clazz where id=#{id}")
    void deleteById(Integer id);

    void addClazz(Clazz clazz);

    Clazz searchById(Integer id);
    @Select("select id, name, room, begin_date, end_date, master_id, subject, create_time, update_time from clazz ")
    List<Clazz> clazzList();
}
